// src/page/notFound/index.tsx
import React, { memo } from "react";
import { Button } from "antd";
import { useNavigate } from "react-router-dom";
import styles from "./index.module.less";

const NotFound = () => {
  const navigate = useNavigate();

  return (
    <div className={styles.container}>
      <h1>404 - 页面未找到</h1>
      <p>您访问的页面不存在，请检查 URL 或返回首页。</p>
      <Button type="primary" onClick={() => navigate("/home")}>
        返回首页
      </Button>
    </div>
  );
};

export default memo(NotFound);